package com.hz.ruoyiseller.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hz.rouyigonggong.domain.LgInboundOrder;
import com.hz.rouyigonggong.domain.LgSeller;
import com.hz.rouyigonggong.domain.LgSellerInfo;
import com.hz.ruoyiseller.dto.LgSellerInfoDTO;
import com.hz.ruoyiseller.dto.LgSellerOutInfoDTO;
import com.hz.ruoyiseller.queryentity.LgSellerInfoQueryEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 卖家Mapper接口
 *
 * @author ruoyi
 * @date 2025-03-06
 */
public interface LgSellerInfoMapper extends BaseMapper<LgSellerInfo> {


    /**
     * @Description: 查询卖家列表
     * @Param: [lgSellerInfoDTO]
     * @return: java.util.List<com.hz.ruoyiseller.dto.LgSellerInfoDTO>
     * @Author: grx
     * @Date: 17:00 2025/3/7
     */
    public List<LgSellerInfoDTO> getList(LgSellerInfoQueryEntity l);
    public List<LgSellerOutInfoDTO> getOutList(@Param("sellerId")Integer sellerId, @Param("goodsId")Integer goodsId);
    public LgInboundOrder getSellerIdAndGoodsId(Integer sellerInfoId);
    public LgSellerInfo getSellerInfoIdBySellerIdAndGoodsId(@Param("sellerId")Integer sellerId, @Param("goodsId")Integer goodsId);
    public int updateSellerInfo(LgSellerInfo lgSellerInfo);

    /**
     * 批量删除卖家
     *
     * @param sellerIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteLgSellerBySellerIds(String[] sellerIds);
    public int insertSellerInfo(LgSellerInfo lgSellerInfo);
}
